import http from "../utils/http"
// 查询当前用户的所有保存地址
export const getAllAddress = (userid) => http.get(`/Shippingaddress/getUserAddress?id=${userid}`)
// 添加新的地址
export const addAddress = (shippingaddress) => http.post("/Shippingaddress/addUserAddress",shippingaddress)
// 删除对应地址
export const deleteAddress = (id) => http.delete(`/Shippingaddress/deleteUserAddress?id=${id}`)
// 修改对应地址
export const updateAddress = (shippingaddress) => http.put("/Shippingaddress/updateUserAddress",shippingaddress)